<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>14demo</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>

<div id="app">
    <ul>
        <li v-for="user in users">
            {{user.name}}-{{user.age}}
        </li>
    </ul>
</div>
<script type = "text/javascript">

    var app=new Vue({
        el:"#app",
        data:{
            users:[]
        },
        created(){
            axios({
                url:"data.json",
                method:"get",
            }).then(res=>{
                console.log(res);
                app.users = res.data;
            }).catch(err=>alert(err))
        }
    });
</script>
</body>
</html>